package org.zfes.snowier.common.monitor.http.okhttp3.handler;

import org.zfes.snowier.common.monitor.http.HttpRuntimeException;
import org.zfes.snowier.common.monitor.http.response.HeaderResponse;

import okhttp3.Response;
@SuppressWarnings("hiding")
@FunctionalInterface
public interface HandlerSyncHeader<Response, R> {

   
	default void onFailure(Exception e){
		
		throw new HttpRuntimeException(e);
	}
    
	
	R onResponse(HeaderResponse headerResponse);
     
}
